package com.itheima.mapper;

import com.itheima.domain.dto.UserEditDTO;
import com.itheima.domain.dto.UserPageDTO;
import com.itheima.domain.po.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {


    int register(@Param("username") String username, @Param("password") String password);


    User find(@Param("user") User user);

    int Edit(@Param("userEditDTO") UserEditDTO userEditDTO);


    List<User> list(@Param("userPageDTO") UserPageDTO userPageDTO);

}
